package cn.org.tpeach.nosql.constant;

import cn.org.tpeach.nosql.framework.LarkFrame;
import cn.org.tpeach.nosql.tools.IOUtil;

import java.io.File;
import java.io.UnsupportedEncodingException;
import java.net.URL;

/**
 * @author tyz
 * @Title: PublicConstant
 * @ProjectName RedisLark
 * @Description: TODO
 * @date 2019-06-23 20:47
 * @since 1.0.0
 */
public interface PublicConstant {
    boolean ISDEBUG = true;
    String NAMESPACE_SPLIT = ":";
//    String REDIS_CONFIG_PATH = IOUtil.getPath() + File.separatorChar +"."+
//            LarkFrame.APPLICATION_VALUE.getProperty("project.name").replaceAll("-","")+".conf";


    class CharacterEncoding {
        /** 7位ASCII字符，也叫作ISO646-US、Unicode字符集的基本拉丁块 */
        public static final String US_ASCII = "US-ASCII";

        /** ISO 拉丁字母表 No.1，也叫作 ISO-LATIN-1 */
        public static final String ISO_8859_1 = "ISO-8859-1";

        /** 8 位 UCS 转换格式 */
        public static final String UTF_8 = "UTF-8";

        /** 16 位 UCS 转换格式，Big Endian（最低地址存放高位字节）字节顺序 */
        public static final String UTF_16BE = "UTF-16BE";

        /** 16 位 UCS 转换格式，Little-endian（最高地址存放低位字节）字节顺序 */
        public static final String UTF_16LE = "UTF-16LE";

        /** 16 位 UCS 转换格式，字节顺序由可选的字节顺序标记来标识 */
        public static final String UTF_16 = "UTF-16";

        /** 中文超大字符集 */
        public static final String GBK = "GBK";

    }

    public final static class ProjectEnvironment{
        public static final  String DEV = "dev";
        public static final  String TEST = "test";
        public static final  String BETA = "beta";
        public static final  String RELEASE = "release";
    }
}
